package com.java.grammer.grammer;

import java.util.Scanner;

/**
 * @author luzhikun
 * @date 2020/11/28- 17:35
 */
public class TriangleTest {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入三角形的三条边");
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        if (a + b > c && a - b < c) {
            if (a * a + b * b == c * c || a * a + c * c == b * b || b * b + c * c == a * a) {
                System.out.println("这是一个直角三角形");
            } else if (a == b || b == c || a == c) {
                System.out.println("这是一个等腰三角形");
            } else if (a * a > b * b + c * c || b * b > a * a + c * c || c * c > b * b + a * a) {
                System.out.println("这是一个钝角三角形");
            } else {
                System.out.println("这是一个普通三角形");
            }
        } else {
            System.out.println("不能构成三角形");
        }
    }
}
